<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:75:"E:\www\paobanglang\nav/../application/admin\view\express\set_relevance.html";i:1512809987;s:67:"E:\www\paobanglang\nav/../application/admin\view\public\header.html";i:1512184095;s:67:"E:\www\paobanglang\nav/../application/admin\view\public\footer.html";i:1516863870;}*/ ?>
﻿<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>后台管理</title>
   
    <link rel="stylesheet" href="__STATIC__/admin/css/amazeui.min.css" />
    <link rel="stylesheet" href="__STATIC__/admin/css/admin.css">
    <link rel="stylesheet" href="__STATIC__/admin/css/style.css">
    <link rel="stylesheet" href="__STATIC__/admin/css/pintuer.css">
    <link rel="stylesheet" href="__STATIC__/admin/css/app.css">
    <script src="__STATIC__/admin/js/jquery.min.js"></script>
    <script src="__STATIC__/admin/js/amazeui.min.js"></script>
    <script src="__STATIC__/admin/js/pintuer.js"></script>
    <script src="__STATIC__/admin/js/app.js"></script>
    <script type="text/javascript" src="__STATIC__/admin/layer/layer.js"></script>
    <script type="text/javascript" src="__STATIC__/admin/laydate/laydate.js"></script>
    <script type="text/javascript" src="__STATIC__/admin/laytpl/laytpl.js"></script>
</head>
<body>
<style>
	.am-dropdown{
		width: 100%;
		padding-left: 30px;
		margin-bottom: 10px;
	}
	.am-dropdown div{
		color: #000;
	}
</style>
<form method="post" class="form-x"  style="overflow: hidden">
	<div class="panel admin-panel" style="background: #fff">
		<br>
        <div class="am-dropdown">
			<div class="label">
				<label>可接单类型</label>
			</div>
			<div class="field">
				<?php foreach($order_array as $k => $v): ?>
					<label class="button <?php if(stripos($data,($k .","))): ?>active<?php endif; ?>" style="margin: 5px">
						<input type="checkbox" name="order_type[]" value="<?php echo $k; ?>" <?php if(stripos($data,($k .","))): ?>checked<?php endif; ?> /> <?php echo $v; ?>
					</label>
				<?php endforeach; ?>
			</div>
		</div>
		<div class="am-dropdown">
			<div class="label">
				<label></label>
			</div>
			<div class="field">
				<button class="button bg-main" type="submit"><?php echo lang('form')['submit']; ?></button>
			</div>
		</div>
		</div>
	</form>
	<script>
		$("[name='status']").click(function(){
			var status = $("[name='status']:checked").val();
			if(status=='4'){
				$("#refuse").removeClass('hidden');
			}else{
				$("#refuse").addClass('hidden');
			}
		});
		var um = UM.getEditor('myEditor');
		
	</script>
<script src="__STATIC__/admin/js/jquery.min.js"></script>
<script src="__STATIC__/admin/js/amazeui.min.js"></script>
<script src="__STATIC__/admin/js/pintuer.js"></script>
<script src="__STATIC__/admin/js/app.js"></script>
<script type="text/javascript" src="__STATIC__/admin/layer/layer.js"></script>
<script type="text/javascript" src="__STATIC__/admin/layer/extend/layer.ext.js"></script>
<script type="text/javascript" src="__STATIC__/admin/laydate/laydate.js"></script>
<script type="text/javascript" src="__STATIC__/admin/laytpl/laytpl.js"></script>
<script>
    $('.upload').on('click',function (){
            var id = $(this).attr('data-id');
            upload(id);
        }
    );
    function upload(id){
        layer.open({
            type:2,
            title:false,
            area: ['70%', '90%'],
            offset: '5%',
            content: "<?php echo url('/admin/material'); ?>?id="+id
        });
    }
</script>
<?php if(request()->isPost()): ?>
<script>
    layer.msg('操作完成！');
    setTimeout(function (){
        parent.window.location.href = parent.window.location.href;
    },800);
</script>
<?php endif; ?>
</body>
</html>